#include "end_util.h"

#include <arpa/inet.h>

uint16_t hbo2nbo16(uint16_t value) {
    return htons(value);
}

uint16_t nbo2hbo16(uint16_t value) {
    return ntohs(value);
}

uint32_t hbo2nbo32(uint32_t value) {
    return htonl(value);
}

uint32_t nbo2hbo32(uint32_t value) {
    return ntohl(value);
}
